"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Configs",
      [
        {
          ip: "192.168.20.10",
          port: "501",
          status: "0",
          type: "1",
          beUsed: 1,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          ip: "192.168.20.11",
          port: "101",
          status: "0",
          type: "1",
          beUsed: 2,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          ip: "192.168.20.13",
          port: "102",
          status: "0",
          type: "1",
          beUsed: 3,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          ip: "192.168.20.14",
          port: "103",
          status: "0",
          type: "1",
          beUsed: 4,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          ip: "192.168.20.15",
          port: "503",
          status: "0",
          type: "2",
          beUsed: "1,2,3,4",
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  },
};
